<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        * {
            /* border: 1px solid red; */
        }

        html {
            width: 100%;
            height: 100%;
        }

        body {
            width: 100%;
            height: 100%;
            margin: 0;
        }

        .main {
            width: 100%;
            height: 100%;
            border: 1px solid gray;
        }

        .top {
            width: 100%;
            height: 50px;
            background-color: blue;
        }

        .border {
            width: 100%;
            height: 500px;
            border: 1px solid red;
            position: relative;
            display: inline-block;
        }

        .left {
            width: 100px;
            height: 500px;
            background-color: #00FFFF;
            float: left;
        }

        .center {
            width: calc(100% - 200px);
            height: 500px;
            background-color: #550000;
            float: left;
        }

        .right {
            width: 100px;
            height: 500px;
            background-color: #ffaa00;
            float: left;
        }

        .footer {
            width: 100%;
            height: calc(100% - 550px);
            background-color: yellow;
        }
    </style>
</head>

<body>
    <div class="main">
        <div class="top"></div>
        <div class="border">
            <div class="left"></div>
            <div class="center"></div>
            <div class="right"></div>
        </div>
        <div class="footer"></div>
    </div>
</body>

</html>